﻿using System;
using System.Collections.Generic;
using System.Text;

namespace KBEngine.Common
{
    using MessageID = System.UInt16;
    public class Message
    {
        /// <summary>
        /// 消息名称
        /// </summary>
        public string name;

        /// <summary>
        /// 消息id
        /// </summary>
        public MessageID id = 0;

        /// <summary>
        /// -1:变长类型数据包(常用于MemroyStream)  0:固定长度数据包
        /// </summary>
        public Int16 msglen = -1;
    }
}
